package ProgramLogic;
import java.io.Serializable;

//import java.awt.Image;

public abstract class Medium implements Serializable, Comparable<Medium> {
    static final long serialVersionUID = 1L;
    private String name;
    private Long articleNumber;

    //TODO: Cover
    //private Image cover;
    public Medium() {

    }

    public Medium(String name, Long articleNumber) {
	this.name = name;
	this.articleNumber = articleNumber;
    }

    public void setName(String name) {
	this.name = name;
    }

    public void setArticleNumber(Long articleNumber) {
	this.articleNumber = articleNumber;
    }

    public String getName() {
	return name;
    }

    public Long getArticleNumber() {
	return articleNumber;
    }

    public int compareTo(Medium m) {
	return this.name.compareTo(m.name);
    }
}